// Fill out your copyright notice in the Description page of Project Settings.

#include "WorldController.h"
#include "WorldEntityReferencing.h"

WORLD_ENTITY_META_DEFINE(FWorldController, FWorldEntity);

FWorldController::FWorldController()
	: Super()
	, Name(this, "")
	, Sequence(this, 0)
	, Control(this)
{}

FWorldController::FWorldController(const json& j)
	: Super(j)
	, Name(this, "", _xml, "name")
	, Sequence(this, 0, _xml, "sequence")
	, Control(this, _xml, "control")
{}

FWorldController::~FWorldController()
{}

void FWorldController::Resolve(FWorldEntityReferencing& referencing)
{
	Super::Resolve(referencing);
	referencing
		.Resolve(Control);
}
